home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / grub.postinst < prev    next >
Text File  |  2008-10-21  |  631b  |  27 lines

  1. #!/bin/sh
  2.  
  3. if [ "$1" = "configure" ]; then
  4.     if dpkg --compare-versions "$2" lt-nl "0.97-29ubuntu6"; then
  5.         update-grub
  6.     fi
  7.     if dpkg --compare-versions "$2" lt "0.97-29ubuntu26"; then
  8.         # This is an old misnamed config file we need to get rid of
  9.         rm -f /etc/event.d/event.d-last-good-boot
  10.     fi
  11.     if dpkg --compare-versions "$2" lt "0.97-29ubuntu38"; then
  12.         # Remnants of when this was default
  13.         rm -rf /boot/last-good-boot /lib/modules/last-good-boot
  14.     fi
  15. fi
  16.  
  17. if [ "x$1" = xtriggered ] ; then
  18.     /usr/sbin/update-grub
  19. fi
  20.  
  21. if [ "$1" = "configure" ]; then
  22.     # Create a last-good-boot if one doesn't exist.
  23.     /usr/sbin/kernel-helper -i
  24. fi
  25.  
  26.  
  27.